﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SurvivalNN.src
{

    public enum EntityStatusType
    {
        ENTITY_WARMTH = 0,
        ENTITY_HUNGER = 1,
    }

    public class EntityStatusChange : EventArgs
    {
        public EntityStatusType _statusType = EntityStatusType.ENTITY_HUNGER;
        public double _newValue = 0;
        public double _oldValue = 0;

        public EntityStatusChange(EntityStatusType type, double oldVal, double newVal)
        {
            _statusType = type;
            _newValue = newVal;
            _oldValue = oldVal;
        }
    }

    interface IEntityModel
    {
        float HungerRate    { set; get; }
        float WarmthRate    {set;get;}
        float Hunger { set; get; }
        float Warmth { set; get; }
        void Update(float dt);
        event EventHandler<EntityStatusChange> StatusChangeHandler;
    }
}
